package IMIC.NGUYENCONGHUY.ARRAY.BAITAP1;

import java.util.Scanner;

public class View {
	public static void main(String[] args) {
		int kq =0;
		double [] myArray = new double[100];
		Scanner sr=new Scanner(System.in);
		for(int i=0;i<myArray.length;i++){
			System.out.println("Nhập vào điểm thứ(số âm sẽ thoát): "+i);
			if(sr.nextDouble()>=0){
				myArray[i]=sr.nextDouble();
			}
		}
		Controller controll = new Controller();
		kq =controll.Sum(myArray);
		System.out.println("Số"+kq);
	}
}
